import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';
import { shallowRef } from 'vue';
export const topTwoRouters: Array<RouteRecordRaw> = [
    {
        path: '/topTwo',
        name: 'topTwo',
        meta: {
            title: '测试其他'
        },
        component: shallowRef(Layout),
        redirect: '/top2Left1',
        children: [
            {
                path: '/top2Left1',
                name: 'top2Left1',
                component: () =>
                    import(
                        /* webpackChunkName: "top2Left1" */ '@/views/topTwo/top2LeftOne/index.vue'
                    ),
                meta: {
                    title: '伪类标签'
                },
                children: []
            },

            {
                path: '/top2LeftTwo',
                name: 'top2LeftTwo',
                redirect: '/top2LeftTwo/child1',
                meta: {
                    title: '测试--等'
                },
                children: [
                    {
                        path: '/top2LeftTwo/child1',
                        name: 't2ltchild1',
                        meta: {
                            title: '测试01'
                        },
                        component: () =>
                            import(
                                /* webpackChunkName: "t2ltchild1" */ '@/views/topTwo/top2LeftTwo/t2ltchildOne.vue'
                            )
                    },
                    {
                        path: '/top2LeftTwo/child2',
                        name: 't2ltchild2',
                        meta: {
                            title: '测试02-本地'
                        },
                        component: () =>
                            import(
                                /* webpackChunkName: "t2ltchild2" */ '@/views/topTwo/top2LeftTwo/t2ltchildTwo.vue'
                            )
                    }
                ]
            }
        ]
    }
];
